import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'
//包装了三个对cookies里的token的获得，修改，删除的函数，此时token已经存在cookies里了
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
